Harden release workflow with retry/backoff for release ID resolution#31236
Merged
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
Fix release workflow by retrying release ID resolution
Harden release workflow with retry/backoff for release ID resolution
May 9, 2026
Copilot created this pull request from a session on behalf of
pelikhan
May 9, 2026 16:26
View session
Contributor
There was a problem hiding this comment.
Pull request overview
Hardens the release workflow by making post-gh release create release ID resolution resilient to transient API eventual-consistency issues.
Changes:
- Add bounded retry logic (max 5 attempts) when resolving a newly-created release’s
databaseId. - Implement exponential backoff between attempts and classify errors to retry only on “not found/404”-style failures.
- Regenerate the compiled workflow (
release.lock.yml) so the runtime workflow includes the new behavior.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/release.md | Adds retry + exponential backoff around gh release view ... databaseId resolution after release creation. |
| .github/workflows/release.lock.yml | Updates the compiled workflow to include the same retry/backoff logic in the runnable definition. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 2/2 changed files
- Comments generated: 0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug Fix
The
releaseworkflow failed in run25562543881(job75053678651) when resolving the newly created release’sdatabaseIdimmediately aftergh release create. This change makes release ID resolution resilient to transient post-create API inconsistency.What was the bug?
After creating a release, the workflow immediately called:
In the failing job, that lookup intermittently failed at step
6:12, causing the release job to exit.How did you fix it?
MAX_ATTEMPTS=5) for release ID lookup.2^attemptseconds) between retries.Testing
This change specifically targets the failure mode observed in job
75053678651: release creation succeeds, but immediate ID resolution may be transiently unavailable. The new logic preserves fast success when available and retries when the ID is not yet visible.